package com.wintor.server;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import com.wintor.client.WintorEvolutionService;
import com.wintor.shared.FieldVerifier;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

/**
 * The server side implementation of the RPC service.
 */
@SuppressWarnings("serial")
public class WintorEvolutionServiceImpl extends RemoteServiceServlet implements WintorEvolutionService {

	public String startTrack(int frequency, int duration, int condition) throws IllegalArgumentException {
		WintorEvolution wintorEvolution = new WintorEvolution(frequency, duration, condition); 		
		Wintor wintor = wintorEvolution.startTrackOnce();
		return wintor.toString();
	}	
}
